/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2020 All Rights Reserved.
 */
package com.dal.flink;

import java.util.ArrayList;
import java.util.List;

/**
 * @author dingaolin
 * @version : MockStreamUtil.java, v 0.1 2020年10月22日 下午3:04 dingaolin Exp $
 */
public class MockStreamUtil {

    public static List<String> names = new ArrayList<>();
    public static List<String> uids = new ArrayList<>();

    static {
        names.add("Tom");
        names.add("James");
        names.add("Lucy");
        names.add("Lilly");
        names.add("Devid");

        uids.add("1");
        uids.add("2");
        uids.add("3");
        uids.add("4");
        uids.add("5");
    }

    public static String simpleMockData() {
        return "[" + System.currentTimeMillis() + "],[" + System.currentTimeMillis() + "]";
    }

    public static String groupMockData() {
        int i = (int) (Math.random() * 5);
        return names.get(i) + "," + uids.get(i);
    }
}